$(function() {
	var orderType = utilModule.getQueryString("orderType");
	var orderid = utilModule.getQueryString("orderid");
	if(orderType==3){
		initphoneOrder();
	}else if(orderType==4){
		initrapidlyOrder();
	}
	
	//极速电话订单展示
	function initrapidlyOrder() {
		var orderid = utilModule.getQueryString("orderid");
		if(utilModule.checkUndefined(orderid) != "") {
			var params = {
				id: orderid
			};
			speePhoneOrderModule.queryOrderDetail(params,function(callBack) {
				console.log(callBack);
				var infor = callBack;
				$(".patient-name").text(infor.patientName);
				$(".patient-phone").text(infor.answerMobile);
				$(".patient-date").text(infor.createTime);
				$(".order-sn").text(infor.orderSn);
			});
		}
	}
	//电话咨询详情
	function initphoneOrder(){
		var  param = {
			id: orderid,
			typeOrder:orderType
		}
		
		userCenterModule.myServiceInfor(param,function(callBack){
			console.log(callBack);
			var infor = callBack;
				$(".patient-name").text(infor.name);
				$(".patient-phone").text(infor.answerPhone);
				$(".patient-date").text(infor.createTime);
				$(".patient-imprice").text("¥"+infor.price);
				$(".order-sn").text(infor.ordersn);
		
		})
	}
	
	
	
	
	
	
	$(".completed").on("tap",function(){
		location.replace("../../index.html");
	})
		
		
});